package wrapper;

public class IntegerDemo {
    public static void main(String[] args) {
        /*
        Integer a = new Integer(5);
        Integer b = new Integer(5);
        Integer A = new Integer(500);
        System.out.println(a==b);//false
        System.out.println(a.equals(b));//true,包装类和Sring重写了equals


        Integer c = Integer.valueOf(5);
        Integer d = Integer.valueOf(5);
        Integer B = Integer.valueOf(500);
        System.out.println(a.equals(c));
        System.out.println(a==c);//false
        System.out.println(c==d);//Integer.valueOf会复用一个自节
        System.out.println(A==B);//超过一个字节了'

        Integer i = Integer.valueOf(5);
        int j=i.intValue();
        System.out.println(i);
        System.out.println(j);

        Integer ii=5;//---自动装箱；
        int jj =ii;//---自动拆箱；
         */

        String a = "11";
        int age = Integer.parseInt(a);
        System.out.println(age);

        int b= Integer.MAX_VALUE;
        double c= Double.MIN_NORMAL;
        System.out.println(b+"\t"+c);


    }
}
